﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>

<div class="layout-cols2">
	


       
     <div class="col1">   
        
     <div style="clear:both;"></div>
         <form method="post" action="" id="topicdata">  
    
				<table border="0px" cellpadding="0" cellspacing="0" class="topiclist" summary="主题标签结果">
				<tr style="height:30px;">
				    <td style="padding-left:20px;"><b>标题</b></td>
				    <td align="center"><b>作者</b></td>
				    <td align="center"><b>回复/人气</b></td>
				    <td align="center"><b>最后更新</b></td>
				</tr>
				<tbody>
				<%csharp%>
				string str="color_0";
				foreach(TopicInfo item in topiclist) { <%/csharp%>
				<tr style="height:40px" class="{str}">
				   
				    <td>&nbsp;&nbsp;
				    
				    
				     <%csharp%>TempUrl = string.Format("/BBS/Topic.aspx?gid=" + item.Groupid + "&tid=" + item.Id); <%/csharp%>
				    &nbsp;&nbsp;<a href="{GetUrl(TempUrl)}">
				    <font <%if item.TitleColor==1%>color="Green"<%else if item.TitleColor==2%>color="Red"<%else%>color=""<%/if%>>
				    <%if item.Title.Length<=30%>{item.Title}<%else%>{item.Title.Substring(0,30)}...<%/if%>
				    </font>
				    
				    </a>
				    &nbsp;<%if item.ShowLevel==Constants.TopicGroupTop%><img src="/support/alpha/images/bbsicon2.jpg" /><%/if%>
				          <%if item.IsBest==1%><img src="/support/alpha/images/is.gif" /><%/if%>
				    
				    
				    </td>
				    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.PostUserId; <%/csharp%>
				    <td align="center"><a href="{GetUrl(TempUrl)}" target="_blank">{item.PostUserName}</a>
				        <br />{item.PostTime.ToString("yyyy-MM-dd")}</td>
				    <td align="center">{item.ReplyCount}/{item.Hits}</td>
				    <td align="center">
				        <%csharp%>if(item.LatestReplyUserId > 0) { <%/csharp%>
				        <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.LatestReplyUserId; <%/csharp%>
				        <a href="{GetUrl(TempUrl)}" target="_blank"><font style="color:green;">{item.LatestReplyUserName}</font></a>
				        <br /><%csharp%>TempUrl = item.LatestReplyTime.ToString("yyyy-MM-dd HH:mm") ;<%/csharp%>{TempUrl}
				        <%csharp%>} else{ <%/csharp%>
				         暂无更新
				         <%csharp%>} <%/csharp%>
				    </td>
				</tr>
    			<%csharp%>
    			if(str=="color_0") str="color_1";
					else str="color_0";
    			
    			}<%/csharp%>
				</table>
	
	     </form>
				
			
					
 
        <div class="box">
        <div class="content">
            	            <div style="float:right; height:30px;">
	              <div class="pages">
		            {PagingString}
		            </div>
	            </div>
        		
	            <div style="clear:both;"></div>
	            </div>
        </div>

         <div style="clear:both;"></div>
         <form method="post" action="" id="Form2">  
    
				<table border="0px" cellpadding="0" cellspacing="0" class="topiclist" summary="主题标签结果">
				<tr style="height:30px;">
				    <td style="padding-left:20px;"><b>标题</b></td>
				    <td align="center"><b>作者</b></td>
				    <td align="center"><b>回复/人气</b></td>
				    <td align="center"><b>最后更新</b></td>
				</tr>
				<tbody>
				<%csharp%>
				string str1="color_0";
				foreach(LogTopicInfo item in logTopicList) { <%/csharp%>
				<tr style="height:40px" class="{str1}">
				   
				    <td>&nbsp;&nbsp;
				    
				    
				     <%csharp%>TempUrl = string.Format("/Profile/Log.aspx?uid="+item.HostUserId+"&lid="+item.Id); <%/csharp%>
				    &nbsp;&nbsp;<a href="{GetUrl(TempUrl)}">
				    <font color="">
				    <%if item.Title.Length<=30%>{item.Title}<%else%>{item.Title.Substring(0,30)}...<%/if%>
				    </font>
				    
				    </a>
				    </td>
				    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.HostUserId; <%/csharp%>
				    <td align="center"><a href="{GetUrl(TempUrl)}" target="_blank">{item.PostUserName}</a>
				        <br />{item.PostTime.ToString("yyyy-MM-dd")}</td>
				    <td align="center">{item.ReplyCount}/{item.Hits}</td>
				    <td align="center">
				        <%csharp%>if(item.LastestReplyUserId > 0) { <%/csharp%>
				        <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.LastestReplyUserId; <%/csharp%>
				        <a href="{GetUrl(TempUrl)}" target="_blank"><font style="color:green;">{item.LatestReplyUserName}</font></a>
				        <br /><%csharp%>TempUrl = item.LatestReplyTime.ToString("yyyy-MM-dd HH:mm") ;<%/csharp%>{TempUrl}
				        <%csharp%>} else{ <%/csharp%>
				         暂无更新
				         <%csharp%>} <%/csharp%>
				    </td>
				</tr>
    			<%csharp%>
    			if(str1=="color_0") str1="color_1";
					else str1="color_0";
    			
    			}<%/csharp%>
				</table>
	
	     </form>
				
			
					
 
        <div class="box">
        <div class="content">
            	            <div style="float:right; height:30px;">
	              <div class="pages">
		            {PagingString1}
		          </div>
	            </div>
        		
	            <div style="clear:both;"></div>
	            </div>
        </div>
	    </div>
	

	
</div>

<%template _footer%>		
